﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Data;
using System.Collections;
public partial class First : System.Web.UI.Page
{
  public string username = "";
  public ArrayList al = null;
  protected void Page_Load(object sender, EventArgs e)
  {
    string sSql = "select * from sys_user where dlm=@0";
    SqlParameter[] cmdParams = { new SqlParameter("@0", SqlDbType.VarChar, 10) };
    cmdParams[0].Value = SysManage.Get_User;
    SqlDataReader dr = DbHelperSQL.ExecuteReader(sSql, cmdParams);
    if (dr.Read())
    {
      username = dr["xm"].ToString() + "：<b></b> 您好,感谢登录使用！";
    }
    dr.Close();
    al = new ArrayList();
    DataSet dt = ProjectPrivate.GetXTGN(SysManage.Get_User);
    foreach (DataRow dr2 in dt.Tables[0].Rows)
    {
      if (dr2["qx"].ToString() == "true")
        al.Add(dr2["xtgnid"].ToString());
    }
  }
}